﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sharp.Portal
{
    /// <summary>
    /// 布尔值列
    /// </summary>
    public class BooleanColumnAttribute : ColumnAttribute
    {
        /// <summary>
        /// 布尔值列
        /// </summary>
        public BooleanColumnAttribute()
        {
        }
        /// <summary>
        /// 布尔值列
        /// </summary>
        /// <param name="trueText"></param>
        /// <param name="falseText"></param>
        public BooleanColumnAttribute(string trueText, string falseText)
        {
            TrueText = trueText;
            FalseText = falseText;
        }
        /// <summary>
        /// 为True的文字
        /// </summary>
        public string TrueText { get; set; }
        /// <summary>
        /// 为false的文字
        /// </summary>
        public string FalseText { get; set; }
    }
}